/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.trocket.v20230308.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeMigratingTopicStatsResponse extends AbstractModel {

    /**
    * Number of consumers in the source cluster.
    */
    @SerializedName("SourceClusterConsumerCount")
    @Expose
    private Long SourceClusterConsumerCount;

    /**
    * Number of consumers in the target cluster.
    */
    @SerializedName("TargetClusterConsumerCount")
    @Expose
    private Long TargetClusterConsumerCount;

    /**
    * Source cluster consumer group list.
    */
    @SerializedName("SourceClusterConsumerGroups")
    @Expose
    private String [] SourceClusterConsumerGroups;

    /**
    * Target cluster consumer group list.
    */
    @SerializedName("TargetClusterConsumerGroups")
    @Expose
    private String [] TargetClusterConsumerGroups;

    /**
    * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Number of consumers in the source cluster. 
     * @return SourceClusterConsumerCount Number of consumers in the source cluster.
     */
    public Long getSourceClusterConsumerCount() {
        return this.SourceClusterConsumerCount;
    }

    /**
     * Set Number of consumers in the source cluster.
     * @param SourceClusterConsumerCount Number of consumers in the source cluster.
     */
    public void setSourceClusterConsumerCount(Long SourceClusterConsumerCount) {
        this.SourceClusterConsumerCount = SourceClusterConsumerCount;
    }

    /**
     * Get Number of consumers in the target cluster. 
     * @return TargetClusterConsumerCount Number of consumers in the target cluster.
     */
    public Long getTargetClusterConsumerCount() {
        return this.TargetClusterConsumerCount;
    }

    /**
     * Set Number of consumers in the target cluster.
     * @param TargetClusterConsumerCount Number of consumers in the target cluster.
     */
    public void setTargetClusterConsumerCount(Long TargetClusterConsumerCount) {
        this.TargetClusterConsumerCount = TargetClusterConsumerCount;
    }

    /**
     * Get Source cluster consumer group list. 
     * @return SourceClusterConsumerGroups Source cluster consumer group list.
     */
    public String [] getSourceClusterConsumerGroups() {
        return this.SourceClusterConsumerGroups;
    }

    /**
     * Set Source cluster consumer group list.
     * @param SourceClusterConsumerGroups Source cluster consumer group list.
     */
    public void setSourceClusterConsumerGroups(String [] SourceClusterConsumerGroups) {
        this.SourceClusterConsumerGroups = SourceClusterConsumerGroups;
    }

    /**
     * Get Target cluster consumer group list. 
     * @return TargetClusterConsumerGroups Target cluster consumer group list.
     */
    public String [] getTargetClusterConsumerGroups() {
        return this.TargetClusterConsumerGroups;
    }

    /**
     * Set Target cluster consumer group list.
     * @param TargetClusterConsumerGroups Target cluster consumer group list.
     */
    public void setTargetClusterConsumerGroups(String [] TargetClusterConsumerGroups) {
        this.TargetClusterConsumerGroups = TargetClusterConsumerGroups;
    }

    /**
     * Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. 
     * @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     * @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public DescribeMigratingTopicStatsResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeMigratingTopicStatsResponse(DescribeMigratingTopicStatsResponse source) {
        if (source.SourceClusterConsumerCount != null) {
            this.SourceClusterConsumerCount = new Long(source.SourceClusterConsumerCount);
        }
        if (source.TargetClusterConsumerCount != null) {
            this.TargetClusterConsumerCount = new Long(source.TargetClusterConsumerCount);
        }
        if (source.SourceClusterConsumerGroups != null) {
            this.SourceClusterConsumerGroups = new String[source.SourceClusterConsumerGroups.length];
            for (int i = 0; i < source.SourceClusterConsumerGroups.length; i++) {
                this.SourceClusterConsumerGroups[i] = new String(source.SourceClusterConsumerGroups[i]);
            }
        }
        if (source.TargetClusterConsumerGroups != null) {
            this.TargetClusterConsumerGroups = new String[source.TargetClusterConsumerGroups.length];
            for (int i = 0; i < source.TargetClusterConsumerGroups.length; i++) {
                this.TargetClusterConsumerGroups[i] = new String(source.TargetClusterConsumerGroups[i]);
            }
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamSimple(map, prefix + "SourceClusterConsumerCount", this.SourceClusterConsumerCount);
        this.setParamSimple(map, prefix + "TargetClusterConsumerCount", this.TargetClusterConsumerCount);
        this.setParamArraySimple(map, prefix + "SourceClusterConsumerGroups.", this.SourceClusterConsumerGroups);
        this.setParamArraySimple(map, prefix + "TargetClusterConsumerGroups.", this.TargetClusterConsumerGroups);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

